<!DOCTYPE html>
<html>
<head>
	<title>用户管理</title>
	<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
<link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
<script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
<script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
<script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
<script type="text/javascript" src="../../statics/js/upload.js"></script>
<script type="text/javascript" src="../../statics/common/step/steps.js"></script>
<link rel="stylesheet" href="../../statics/css/jxcPublicAll.css"  media="all">
<link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
<link rel="stylesheet" href="../../statics/common/step/steps.css">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
<link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
<script src="../../statics/js/modules/cropper/cropper.min.js"></script>
<script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
<script src="../../statics/common/layui/autocomplete.js"></script>
<script  src="../../statics/js/modules/viewer/viewer.min.js"></script>
<script src="../../statics/common/print-js/print.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
<script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/searchview.js"></script>
<script type="text/javascript" src="../../statics/js/tableedit.js"></script>

<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

<!-- 引入组件库 -->
<link rel="stylesheet" type="text/css" href="../../statics/css/index.css">






	<style>
		#test1 {
			width: 250px;
		}
		.table-main {
			display: flex;
			box-sizing: border-box;
			padding: 0 30px;
		}
		.table-main .layui-tree {
			margin-top: 10px;
			width: 240px;
			max-width: 240px;
			overflow: auto;
			height: 420px;
			max-height: 420px;
			border: 1px solid #e6e6e6
		}
		.list-table-content-box {
			margin-left: 10px;
		}
		.tree-txt-active{
			color :blue;
		}
	</style>
</head>
<body>
<div id="rrapp" v-cloak>

	<div class="list-search-title-box">
		<form class="layui-form" style="box-shadow: 0 0 20px #eee;padding-right: 15px;">
			<section class="jxc-section" style="display: flex;align-items: flex-start;white-space: nowrap;">
				<div class="card layui-row" style="flex: 1">
					<div class="layui-form-item ">
						<div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
							<label class="layui-form-label">用户名称:</label>
							<div class="layui-input-inline">
								<input type="text" class="layui-input searchVal" v-model="q.username"  placeholder="请输入用户名称" />
							</div>
						</div>
						<div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
							<label class="layui-form-label">手机号:</label>
							<div class="layui-input-inline">
								<input type="text"  v-model="q.mobile"  placeholder="请输入手机号" class="layui-input searchVal">
							</div>
						</div>
						<div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
							<label class="layui-form-label">状态:</label>
							<div class="layui-input-inline">
								<select  lay-search="" v-model="q.status"   lay-filter="statusData" >
									<option value="">请选择</option>
									<option value=0>禁用</option>
									<option value=1>正常</option>
								</select>
							</div>
						</div>
					</div>
				</div>
				<div style="display: flex;align-items: center;">
					<a class="layui-btn search-btn" @click="query">查询</a>
					<a class="layui-btn reset-btn" @click="reset">重置</a>
				</div>
			</section>
		</form>
	</div>
	<div class="list-search-title-box">
		<form class="layui-form">
			<div style="display:flex;width: 100%;">
				<div class="layui-form-item layui-row" style="width: 100%;">
					<div class="list-search-form-button" style="width: 100%;">
						<a class="layui-btn search-btn" @click="exports">导出</a>
						<mperm v-m-perm="['sys:user:save']">
							<a class="layui-btn reset-btn" @click="add">新增用户</a>
						</mperm>
					</div>
				</div>
			</div>
		</form>
	</div>

</div>
<div class="table-main">
	<div id="test1" class="demo-tree demo-tree-box"></div>
	<div style="width: calc(100% - 250px)" class="list-table-content-box"  >
		<table class="layui-hide" id="grid" lay-filter="grid"></table>
	</div>
</div>

<!--操作-->
<script type="text/html" id="barTpl">
	<mperm v-m-perm="['sys:user:update']">
	<a class="layui-grid-btn-xs" lay-event="edit" more-btn-index="{{d.LAY_INDEX-1}}">编辑</a>
	<a class="layui-grid-btn-xs" lay-event="generateWxQrcode" more-btn-index="{{d.LAY_INDEX-1}}">生成小程序二维码</a>
	</mperm>
	<mperm v-m-perm="['sys:user:handover']">
	<a class="layui-grid-btn-xs" lay-event="handover" more-btn-index="{{d.LAY_INDEX-1}}">交接</a>
	</mperm>
	<mperm v-m-perm="['sys:user:update']">
	{{#  if(d.status == 0){ }}
	<a class="layui-grid-btn-xs" lay-event="updatestatus" more-btn-index="{{d.LAY_INDEX-1}}">启用</a>
	{{#  } }}
	{{#  if(d.status == 1){ }}
	<a class="layui-grid-btn-xs" lay-event="updatestatus" more-btn-index="{{d.LAY_INDEX-1}}">禁用</a>
	{{#  } }}
	</mperm>
</script>

<script type="text/html" id="statusTpl">
	{{#  if(d.status == 0){ }}
		<span style="color: #F581B1;">禁用</span>
	{{#  } else { }}
		<span>正常</span>
	{{#  } }}
</script>

<script type="text/javascript" src="../../statics/js/modules/sys/user.js"></script>
</body>
</html>